package com.ruoyi.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistics.mapper.ResInformationPraiseMapper;
import com.ruoyi.statistics.domain.ResInformationPraise;
import com.ruoyi.statistics.service.IResInformationPraiseService;

/**
 * 资讯点赞Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-20
 */
@Service
public class ResInformationPraiseServiceImpl implements IResInformationPraiseService 
{
    @Autowired
    private ResInformationPraiseMapper resInformationPraiseMapper;

    /**
     * 查询资讯点赞
     * 
     * @param id 资讯点赞主键
     * @return 资讯点赞
     */
    @Override
    public ResInformationPraise selectResInformationPraiseById(Long id)
    {
        return resInformationPraiseMapper.selectResInformationPraiseById(id);
    }

    /**
     * 查询资讯点赞列表
     * 
     * @param resInformationPraise 资讯点赞
     * @return 资讯点赞
     */
    @Override
    public List<ResInformationPraise> selectResInformationPraiseList(ResInformationPraise resInformationPraise)
    {
        return resInformationPraiseMapper.selectResInformationPraiseList(resInformationPraise);
    }

    /**
     * 新增资讯点赞
     * 
     * @param resInformationPraise 资讯点赞
     * @return 结果
     */
    @Override
    public int insertResInformationPraise(ResInformationPraise resInformationPraise)
    {
        return resInformationPraiseMapper.insertResInformationPraise(resInformationPraise);
    }

    /**
     * 修改资讯点赞
     * 
     * @param resInformationPraise 资讯点赞
     * @return 结果
     */
    @Override
    public int updateResInformationPraise(ResInformationPraise resInformationPraise)
    {
        return resInformationPraiseMapper.updateResInformationPraise(resInformationPraise);
    }

    /**
     * 批量删除资讯点赞
     * 
     * @param ids 需要删除的资讯点赞主键
     * @return 结果
     */
    @Override
    public int deleteResInformationPraiseByIds(Long[] ids)
    {
        return resInformationPraiseMapper.deleteResInformationPraiseByIds(ids);
    }

    /**
     * 删除资讯点赞信息
     * 
     * @param id 资讯点赞主键
     * @return 结果
     */
    @Override
    public int deleteResInformationPraiseById(Long id)
    {
        return resInformationPraiseMapper.deleteResInformationPraiseById(id);
    }
}
